<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>修改商品详情</title>
		<style type="text/css">
			form{
				width:400px;
				margin:0px auto;
			}
			div{
				overflow:hidden;
			}
			div p{
				float:left;
			}
			div input{
				height:25px;
				margin-top:13px;
				text-indent:10px;
				border:1px solid #000;
				width:300px;
			}
			div select{
				height:25px;
				margin-top:13px;
				text-indent:10px;
				border:1px solid #000;
				width:150px;
			}
			.button{
				padding-left:100px;
			}
			.button input{
				margin-top:20px;
				color:#fff;
				background-color:#B87354;
				padding-right:10px;
				cursor: pointer;
				border:0px;
				border-radius:5px;
				width:80px;
				height:30px;			
			}
			.button input:hover{
				background-color: #AA895E;
			}
			.shangchuanda input,.shangchuanxiao input{
				border:0px;
				text-indent: 0px;
			}
		</style>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		
	</head>
	<body>
	<%@ include file="/HT/login_control.jsp" %>
			<h1 style="text-align:center">修改商品</h1>
			<form action="doupdatespxq.shtml" method="post" enctype="multipart/form-data">
				<input type="hidden" name="id" value="${sc.sc_id }">
				<div class="name">
					<p>商品名称：</p>
					<input type="text" name="sname" value="${sc.sc_name }">
				</div>
				<div class="color">
					<p>商品颜色：</p>
					<input type="text" name="color" value="${sc.color }">
				</div>
				<div class="price">
					<p>商品价格：</p>
					<input type="text" name="price" value="${sc.sc_price }">
				</div>
				<div class="count">
					<p>商品数量：</p>
					<input type="text" name="count" value="${sc.sc_totalnum }">
				</div>
				<div class="size">
					<p>商品尺码：</p>
					<input type="text" name="size" value="${sc.sc_size }">
				</div>
				
				<div class="pictureda">
					<p>商品大图片：</p>
								<c:forTokens items="${sc.sc_bigimages }" delims="," var="scbig">
									<img src="HT/images/shopping/${scbig }" width="50px">&emsp;
									<input type="hidden" name="photoda" value="${scbig }">
								</c:forTokens>	
					
				</div>
				<div class="shangchuanda">
					<p>上传大图片：</p>
					<input type="file" name="imageda" multiple>
				</div>
				<div class="picturexiao">
					<p>商品小图片：</p>
								<c:forTokens items="${sc.sc_smallimages }" delims="," var="scsmall">
									<img src="HT/images/shopping/${scsmall }" width="50px">&emsp;
									<input type="hidden" name="photoxiao" value="${scsmall }">
								</c:forTokens>	
					
				</div>
				<div class="shangchuanxiao">
					<p>上传小图片：</p>
					<input type="file" name="imagexiao" multiple>
				</div>
				<input type="hidden" value="${daid }" name="daid">
				<input type="hidden" value="${daname}" name="daname">
				<div class="button">
					<input type="submit" value="修改">&emsp;&emsp;&emsp;<input type="reset" value="重置">
				</div>
			</form>
			
	</body>
</html>
                                            
                                            